package com.tsingteng.cosfun.common;

import android.os.Environment;

import com.tsingteng.cosfun.utils.DesityUtils;

/**
 * 描述:全局的变量配置
 * 创建人: 肖利
 *时间: 2018/7/30
 * qq: (872179966)
 */
public class Config {
    //通用
    public static final String STRING_NAME = "gu_sheng";
    public static final int INT_NAME = 7217;

    public static final String IS_LOGIN = "isLogin";
    public static final int PAGE_SIZE = 15;
    public static final int PAGE_THIRTY=30;
    public static final int PAGE_NO=1;
    public static final int PAGE_FIFTY=50;
    public static final int PG_SIZE=1000;

    /**
     * 七牛图片压缩
     */
    public static final String YA_SUO_IMAGE_URL = "?imageView2/1/w/"+ DesityUtils.getScale()*124+"/h/"+DesityUtils.getScale()*165;



    /**
     * fragmentTAG标记
     */
    public static final String FRAGMENTS_TAG = "android:support:fragments";
    /**
     * dialogFrgmentTag标记
     */
    public static final String TAG_CHANNEL = "CHANNEL_DIALOG_FRAGMENT";
    /**
     * 缓存的存放地点
     */
    public static final String HTTP_CACHE = "http_cache";
    /**
     * 缓存存放大小
     */
    public static final int HTTP_CACHE_SIZE = 10 << 20;
    /**
     * cookie头
     */
    public static final String SET_COOKIE = "Set-Cookie";
    /**
     * 用户信息缓存
     */
    public static final String USER_INFO = "user_info";
    /**
     * 图片加载
     */
    public static final int HEAD_IMG = 0;
    public static final int NOMAL_IMG = 1;

    /**
     * 请求成功
     */
    public static final int REQUEST_SUCCESS = 0;
    public static final int REQUEST_CODE_SUCCESS = 200;
    /**
     * 请求失败
     */
    public static final int REQUEST_ERROR = -1;
    /**
     * 冻结账号
     */
    public static final int REQUEST_FREEZE= 50075;

    /**
     * 登录过期
     */
    public static final int LOGON_PAST= 10008;
    /**
     * 连接错误,网络异常
     */
    public static final int CONNECT_ERROR = 1001;
    /**
     * 连接超时
     */
    public static final int CONNECT_TIMEOUT = 1002;

    /**
     * 解析错误
     */
    public static final int PARSE_ERROR = 1003;
    public static final java.lang.String ARG_IS_HIDDEN = "arg_is_hidden";
    /**
     * 未知错误
     */
    int UNKNOWN_ERROR = 1004;

    /**
     * 请求超时
     */
    int REQUEST_TIMEOUT = 1005;

    /**
     * launchId,0:玩Android 1,漫画
     */
    public static final String LAUNCH_ID = "launch_id";
    public static final int LAUNCH_ANDROID = 0;
    public static final int LAUNCH_MAN_HUA = 1;
    /**
     * 更换baseUrl的头信息标记
     */
    public static final String HEADER_KEY = "base_url";
    /**
     * QQAppId
     */
    public static final String QQ_LOGIN_APP_ID = "1107468920";
    /**
     * wxAppId
     */
    public static final String WX_LOGIN_APP_ID = "wxf3bdbcc41926459e";

    /**
     * wxAppId
     */
    public static final String WB_LOGIN_APP_ID = "1041979512";
    public static final String WB_REDIRECT_URL = "http://47.93.254.160/sv1/auth/callback";
    public static final String WB_SCOPE = "all";
    /**
     * 登录类型
     */
    public static final String LOGIN_TYPE = "LOGIN_TYPE";
    public static final String LOGIN_MOBILE = "mobile";
    public static final String LOGIN_QQ = "qq";
    public static final String LOGIN_WX = "wx";
    public static final String LOGIN_WB = "wb";
    public static final String BIND_TYPE = "BIND_TYPE";
    public static final String BIND_QQ = "qq";
    public static final String BIND_WX = "wx";
    public static final String BIND_WB = "wb";
    public static final String BIND_MOBILE = "bind_mobile";

    /**
     * qq回调标记
     */
    public static final String QQ_TAG = "QQ_SHARE_LOGIN";
    /**
     * wx回调标记
     */
    public static final String WX_TAG = "WX_SHARE_LOGIN";
    /**
     * wx回调标记
     */
    public static final String WB_TAG = "WB_SHARE_LOGIN";
    /**
     * /**
     * 标记类型
     */
    public static final String LOGIN = "login";
    public static final String SHARE = "share";

    /**
     * 登录类型
     */
    public static final int SUCCESS =1;//成功
    public static final int FAILE =2;//失败
    public static final int NO_ACCOUNT =3;//账号不存在
    public static final int  HAVEACCOUNT=3;//账号已经存在
    public static final int ERR_PASS_WORD =4;//密码不正确
    /**
     * 腾讯buglyappId
     */

    public static final String BUGLY_ID ="19beca51a5";
    public static final String BUGLY_ID_DEBUG ="c406450534";

    /**
     * 调起选择图片请求码
     */
    public static final int IMAGE_PICKER = 00000;
    /**
     *直接相机请求码
     */
    public static final int REQUEST_CODE_SELECT = 00001;

    public static final int  type = 0;

}
